package com.lz.gamll.feign.order;

import com.lz.gmall.common.result.Result;
import com.lz.gmall.order.entity.OrderInfo;
import com.lz.gmall.order.vo.OrderConfirmVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 郭运龙
 */
@FeignClient("service-order")
public interface OrderFeignClient {

    /**
     * 远程调用，生成订单获取订单的详细数据
     * @return
     */
    @GetMapping("/api/inner/order/getOrderConfirm")
    public Result<OrderConfirmVo> getOrderConfirm();

    /**
     * 远程调用，生成支付订单，获取订单详细数据
     * @param orderId
     * @return
     */
    @GetMapping("/api/inner/order/getPayOrder/{orderId}")
    public Result<OrderInfo> getPayOrder(@PathVariable("orderId") String orderId);
}
